package cn.edu.gdut.csq.entity;

import java.io.Serializable;


public class ResultSet implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Object result;

	private String statuscode;

	public ResultSet(Object result, String statuscode) {
		super();
		this.result = result;
		this.statuscode = statuscode;
	}

	public static ResultSet ok() {
		return new ResultSet(null, "200");
	}

	public static ResultSet ok(Object result) {
		return new ResultSet(result, "200");
	}

	public static ResultSet error(Object result) {
		return new ResultSet(result, "400");
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

	public String getStatuscode() {
		return statuscode;
	}

	public void setStatuscode(String statuscode) {
		this.statuscode = statuscode;
	}
	
	

}
